package com.tanjie.blackbean.pojo.auth;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: tanjie
 * @date: 2021-12-02
 **/
public abstract class AuthConst {

    public static String DEFAULT_TOKEN_SECRET = "blackbean2022";

    public static int DEFAULT_TOKEN_VALID_SECOND = 3600;

    public static String REQUEST_ID = "requestId";

    public static String USER_ID = "userId";

    public static String USERNAME = "username";

    public static String PASSWORD = "password";

    public static String ORG_ID = "orgId";

    public static String USER_TYPE = "userType";

    public static String clientType = "clientType";

    public static String IS_ADMIN = "isAdmin";

    public static String USER_INFO = "userInfo";

    public static String ROLES = "roles";

    public static String PERMISSIONS = "permissions";

    public static String DEVICE_META = "deviceMeta";

    public static String TOKEN_TYPE = "tokenType";

    public static String REFRESH_TOKEN = "refreshToken";

    public static String ACCESS_TOKEN = "accessToken";

    public static List<String> DEFAULT_SKIP_URL = new ArrayList<>();

    static {
        DEFAULT_SKIP_URL.add("/actuator/health/**");
        DEFAULT_SKIP_URL.add("/error/**");
        DEFAULT_SKIP_URL.add("/assets/**");
        DEFAULT_SKIP_URL.add("/swagger-ui/**");
        DEFAULT_SKIP_URL.add("/swagger-resources/**");
        DEFAULT_SKIP_URL.add("/v3/api-docs/**");
    }

}
